﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace @class
{//1、编写程序，定义一个枚举类型，表示订单的状态值：新订单、已发货、已签收、已评价；
 //    声明一个枚举类型表示某个订单的状态并将其值输出。
    enum order
    {
        新订单 = 1,
        已发货,
        已签收,
        已评价
    }
    class Program
    {

        static void Main(string[] args)
        {
            Console.WriteLine("请输入状态：1，新订单   2，已发货   3，已签收   4，已评价");
            while (true)
            {

                int key = int.Parse(Console.ReadLine());
                switch (key)
                {

                    case 1:
                        order a = order.新订单;
                        int A = (int)a;
                        Console.WriteLine("现在订单的状态为：" + (int)order.新订单 + "," + order.新订单);
                        break;
                    case 2:
                        order b = order.已发货;
                        int B = (int)b;
                        Console.WriteLine("现在订单的状态为：" + (int)order.已发货 + "," + order.已发货);
                        break;
                    case 3:
                        order c = order.已签收;
                        int C = (int)c;
                        Console.WriteLine("现在订单的状态为：" + (int)order.已签收 + "," + order.已签收);
                        break;
                    case 4:
                        order d = order.已评价;
                        int D = (int)d;
                        Console.WriteLine("现在订单的状态为：" + (int)order.已评价 + "," + order.已评价);
                        break;

                }
            }
            Console.ReadKey();
        }

    }
}

